﻿using System;


namespace TopBuilds.Restaurant.Data
{
    public class Privilege
    {
        #region 属性
        private int _id;
        private string _name;
        private string _attribute;
        #endregion

        #region 构造
        public Privilege()
        {
            _name             = null;
            _attribute        = null;
        }

         public Privilege(string name)
         {
             _name            = name;
             _attribute       = null;
         }

         public Privilege(string name, string attribute)
        {
            _name             = name;
            _attribute        = attribute;
        }
        #endregion

        public int Id
        {
            get { return _id; }
            set { _id = value; }
        }

        public string Name
        {
            get { return _name; }
            set { _name = value; }
        }

        public string Attribute
        {
            get { return _attribute; }
            set { _attribute = value; }
        }
        public override string ToString()
        {
            return Name;
        }

    }
}
